import { init, DYNAMIC_CURRENT_ENV, openapi } from 'wx-server-sdk'
init({
  env: DYNAMIC_CURRENT_ENV,
})
export async function main(event, context) {
  try {
    const result = await openapi.wxacode.getUnlimited({
        "page": 'pages/index/index',
        "scene": 'a=1',
        "checkPath": true,
        "envVersion": 'release'
      })
    return result
  } catch (err) {
    return err
  }
}